package com.iter.devbox.pattern.composite;

/**树叶构件*/
public class Leaf implements Component {
	private String name;
	public Leaf(String name) {
		this.name = name;
	}
	@Override
    public void add(Component com) {
    }
    @Override
    public void remove(Component com) {
    }
    @Override
    public void display() {
        System.out.println("我是：" + name);
    }
}
